
class SiteLocator(object):
    """
    An independent honor lister class (because separation of application
    and protocol logic is a good thing).
    """
    triggers = ["!site","!uto","!guide","!changes","!requiem","!overpop","!banners"]

    name = "site"
    help = ["%c6!site%c    <-- Gives location of TF site"%(03,03),
            "%c6!uto%c     <-- Gives link to Utopia login"%(03,03),
            "%c6!guide%c   <-- Gives link to Utopia guide"%(03,03),
            "%c6!changes%c <-- Gives link to last changes"%(03,03)]
    
    def command(self, firstword, user, channel, msg):
        if firstword == "!site":
            return {'chanmsg': ["TF site: %c2http://s1.zetaboards.com/truidia/home%c"%(03,03)]}

        if firstword == "!uto":
            return {'chanmsg': ["Utopia login: %c2http://utopia.swirve.com/accounts/login%c"%(03,03)]}

        if firstword == "!guide":
            return {'chanmsg': ["Utopia guide: %c2http://utopia.swirve.com/guide/advanced/ov.php?id=0%c"%(03,03)]}

        if firstword == "!changes":
            return {'chanmsg': ["Last changes: %c2http://forums.jolt.co.uk/showthread.php?t=592104%c"%(03,03)]}
        
        if firstword == "!requiem":
            return {'chanmsg': ["9F disbands: %c2http://www.utimes.org/article/2009/03/26/9-fates-bid-adieu-utopia%c"%(03,03)]}
        
        if firstword == "!overpop":
            return {'chanmsg': ["Overpop mechanics: %c2http://www.utimes.org/article/2009/03/09/overpopulation-mechanics%c"%(03,03)]}
        
        if firstword == "!banners":
            return {'chanmsg': ["Banners: %c2http://s142.photobucket.com/albums/r99/Lion9F/My%%20Banners/%c"%(03,03)]}

        
        